#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<math.h>
int main()
{
    double n = 0;
    int m = 0;
    int i = 0;
    double sum = 0;
    while ((scanf("%lf", &n) != EOF))
    {
        scanf("%d", &m);
        for (i = 0; i < m; i++)
        {
            if (i == 0)
            {
                sum = n;
            }
            else
            {
                n= sqrt(n);
                sum += n;
            }
        }
        printf("%.2f\n", sum);
    }
    return 0;
}